<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<div id="jobDetailModal" class="modal fade" tabindex="-1" role="dialog"
	aria-hidden="true">
	<div class="modal-dialog modal-lg">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal"
					aria-label="Close">
					<span aria-hidden="true">&times;</span>
				</button>
				<h4 class="modal-title">
					<i class="mark"></i> <span>新增修改任务</span>
				</h4>
			</div>
			<div class="modal-body">
				<form class="form-horizontal" name="jobEditForm">
					<div class="form-group ">
						<label
							class="col-md-3 control-label control-label-sm necessary-option">任务名称:</label>
						<div class="col-md-9">
							<input type="text" class="form-control input-sm"
								ng-model="jobVO.name" placeholder="格式：J_应用名_模块名"
								readonly="readonly" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-md-3 control-label control-label-sm necessary-option">任务实现类路径:</label>
						<div class="col-md-9">
							<input type="text" class="form-control input-sm" ng-model="jobVO.jobClass"
								placeholder="格式：com.xxx.xxx.类名" readonly="readonly"/> 
						</div>
					</div>
					<div class="form-group">
						<label
							class="col-md-3 control-label control-label-sm necessary-option">任务组:</label>
						<div class="col-md-3">
							<input select2 type="text" class="form-control input-sm"
								ng-model="jobVO.jobGroupId" select2-model="jobVO.jobGroup"
								config="jobGroupSelectConfig" readonly="readonly" />
						</div>

						<label
							class="col-md-3 control-label control-label-sm necessary-option">优先级:</label>
						<div class="col-md-3">
							<input type="number" class="form-control input-sm"
								name="priority" ng-model="jobVO.priority" placeholder="1~5之间的整数"
								readonly="readonly" />
						</div>
					</div>
					<div class="form-group ">
						<label
							class="col-md-3 control-label control-label-sm necessary-option">任务类型:</label>
						<div class="col-md-3">
							<input select2 type="text" class="form-control input-sm"
								name="jobType" ng-model="jobVO.jobType"
								config="jobTypeSelectConfig" readonly="readonly" />
						</div>
						<label
							class="col-md-3 control-label control-label-sm necessary-option">周期类型:</label>
						<div class="col-md-3">
							<input select2 type="text" class="form-control input-sm"
								name="jobRepeatType" ng-model="jobVO.jobRepeatType"
								config="repeatTypeSelectConfig" readonly="readonly" />
						</div>
					</div>
					<div class="form-group " ng-show="jobVO.jobRepeatType == 'NORMAL'">
						<label
							class="col-md-3 control-label control-label-sm necessary-option">重复次数:</label>
						<div class="col-md-3">
							<input type="number" class="form-control input-sm"
								name="repeatCount" ng-model="jobVO.repeatCount"
								placeholder="-1代表无限次数" readonly="readonly" />
						</div>
						<label
							class="col-md-3 control-label control-label-sm necessary-option">时间间隔:</label>
						<div class="col-md-3">
							<input type="number" class="form-control input-sm"
								name="repeatInterval" ng-model="jobVO.repeatInterval"
								placeholder="单位毫秒" readonly="readonly" />
						</div>
					</div>
					<div class="form-group ">
						<label
							class="col-md-3 control-label control-label-sm necessary-option">超时时间:</label>
						<div class="col-md-3">
							<input type="number" class="form-control input-sm"
								name="executeTimeout" ng-model="jobVO.executeTimeout"
								placeholder="-1代表无超时:单位毫秒" readonly="readonly" />
						</div>
						<label
							class="col-md-3 control-label control-label-sm necessary-option">超时策略:</label>
						<div class="col-md-3">
							<input select2 type="text" class="form-control input-sm"
								name="jobTimeoutPolicy" ng-model="jobVO.jobTimeoutPolicy"
								config="jobTimeoutPolicySelectConfig" readonly="readonly" />
						</div>
					</div>

					<div class="form-group ">
						<label
							class="col-md-3 control-label control-label-sm necessary-option">错过执行恢复策略:</label>
						<div class="col-md-3">
							<input select2 type="text" class="form-control input-sm"
								name="jobMisfireInstruction"
								ng-model="jobVO.jobMisfireInstruction"
								config="misfireInstructionSelectConfig" readonly="readonly" />
						</div>
						<label
							class="col-md-3 control-label control-label-sm necessary-option">死任务自动复重恢置时间:</label>
						<div class="col-md-3">
							<input type="text" class="form-control input-sm"
								name="resetDeathDelayTime" ng-model="jobVO.resetDeathDelayTime"
								placeholder="-1代表不恢复:单位毫秒" readonly="readonly" />
						</div>
					</div>

					<div class="form-group">
						<div ng-show="jobVO.jobRepeatType == 'CRON'">
							<label
								class="col-md-3 control-label control-label-sm necessary-option">Cron表达式:</label>
							<div class="col-md-3">
								<input type="text" class="form-control input-sm"
									name="cronExpression" ng-model="jobVO.cronExpression"
									readonly="readonly" />
							</div>
						</div>

						<label
							class="col-md-3 control-label control-label-sm necessary-option">子任务待执行数量上限:</label>
						<div class="col-md-3">
							<input type="number" class="form-control input-sm"
								name="bufferSizeLimit" ng-model="jobVO.bufferSizeLimit"
								readonly="readonly" />
						</div>
					</div>

					<div class="form-group">
						<label class="col-md-3 control-label control-label-sm">描述说明:</label>
						<div class="col-md-8">
							<textarea rows="5" cols="77" ng-model="jobVO.description"
								readonly="readonly"></textarea>
						</div>
					</div>
				</form>
			</div>
			<div class="modal-footer">
				<div class="modal-footer-button">
					<button type="button" class="btn btn-sm btn-default"
						data-dismiss="modal">关闭</button>
				</div>
			</div>
		</div>
	</div>
</div>
